import {LIST_DATA} from './actionType'
import axios from 'axios'
export const getListData = (page) => {
    return (dispatch) => {
        axios({
            method: 'get',
            url: '/json/listparams.json'
        }).then(res => {
            dispatch({
                type: LIST_DATA,
                currentPage: page,
                obj: res.data
            })
        })
    }
}
